<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>GET请求与POST请求</title>
    </head>
    <body>
        <form action="submit.html" method="get">
            用户名 <input type="text" name="username"/><br/>
            密码 <input type="password" name="password"/><br/>
            <input type="submit" value="GET提交"/>
        </form>
        <hr/>
        <form action="submit.html" method="post">
            用户名 <input type="text" name="username"/><br/>
            密码 <input type="password" name="password"/><br/>
            <input type="submit" value="POST提交"/>
        </form>
    <script>
        console.log(123);
    </script>
    </body>
</html>